package xj.graph2d;

import javax.swing.Icon;

public class DrawShapeMessage { 

  public enum MessageType { ErrorMessage, WarningMessage };
 
  public DrawShapeMessage(MessageType type) { 
    this.type = type; 
  }

  public String getMessage() {
    return message; 
  }

  public void setMessage(String message) {
    this.message = message; 
  }

  public Icon getIcon() { 
    return icon; 
  }

  public void setIcon(Icon icon) { 
    this.icon = icon; 
  }

  public void setSymbol(String symbol, int start, int end) { 
    this.symbol = symbol;
    this.start = start;
    this.end = end;
  }

  public String getSymbol() {
    return symbol;
  }

  public int getSymbolStart() { 
    return start;
  }
  
  public int getSymbolEnd() { 
    return end;
  }

  MessageType type;
  String message; 
  Icon icon; 
  String symbol;
  int start = -1, end = -1;
  
}